<template>
  <div class="letter-setting__send-record">
    <div>
      <n-data-table :columns="columns" :data="data" :max-height="678" striped />
    </div>
    <div>
      <div>
        <n-pagination v-model:page="page" :page-count="100" :page-slot="7">
          <template #prev>
            上一页
          </template>
          <template #next>
            下一页
          </template>
          <template #suffix>
            <div class="pagination__jump-page">
              到<input type="number">页
              <button>确定</button>
              <span>10 条 / 页</span>
            </div>
          </template>
        </n-pagination>
      </div>
    </div>
  </div>
</template>
<script setup>
const columns = [
  {
    title: '会员姓名',
    key: 'name'
  },
  {
    title: '会员电话',
    key: 'mobile'
  },
  {
    title: '短信类型',
    key: 'type'
  },
  {
    title: '发送时间',
    key: 'time',
    width: 300
  },
  {
    title: '发送状态',
    key: 'status'
  }
], data = Array.from({ length: 46 }).map((_, index) => ({
  key: index,
  name: `张三`,
  mobile: '19902693312',
  type: '生日提醒',
  time: '2022-02-25 09:51:18',
  status:'成功'
}));
</script>
<style lang="less" scoped>
.letter-setting__send-record {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto 128px;
  height: 100%;

  >div:first-child {
    margin: 0 30px;
  }

  >div:last-child {
    display: flex;
    align-items: center;
    padding-left: 30px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);

    .pagination__jump-page {
      font-size: 26px;
      color: #4a5060;
      margin: 0 18px;

      input {
        margin: 0 15px;
        width: 64px;
        height: 42px;
        text-align: center;
        background: #f8f8f8;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
      }

      button {
        margin: 0 30px;
        width: 88px;
        height: 44px;
        color: #fdfdfd;
        background: #2c8cf0;
        border-radius: 5px;
      }
    }
  }
}
</style>